//
//  YZSwineryModel.h
//  VET
//
//  Created by 刘文靖 on 2018/7/18.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YZBaseAPI.h"
#import "YZAutoItemModel.h"
//@class YZAutoItemModel;
@interface YZSwineryModel : NSObject
@property (nonatomic, strong) NSString *batchNo; ///< 猪群批次号
/**< 猪群分类（种猪、商品猪）-> vet_dict.dict_class=‘herd_class’*/
@property (nonatomic, strong) YZAutoItemModel *herdClass;
/**< 当前状态（后备、哺乳、保育、育肥、育成、待售、怀孕、空怀）-> vet_dict.dict_class=‘herd_state’*/
@property (nonatomic, strong) YZAutoItemModel *herdState;
@property (nonatomic, assign) NSInteger realQty; ///< 实时存栏数，此值随真实猪群情况变化
@property (nonatomic, assign) NSInteger herdBirthdate; ///<加权平均出生日期
@property (nonatomic, assign) NSInteger swineryId; ///<猪群ID
@property (nonatomic, strong) NSString *herdBirthdateStr; ///<日龄（天）
@property (nonatomic, strong) NSString *swineryOptionStr; ///<选择猪群时 显示的信息
@property (nonatomic, assign) BOOL isFinished; ///< 是否结批 YES: 是

@property (nonatomic, assign) NSInteger gmtCreated;
@property (nonatomic, assign) NSInteger initQty;


@end

@interface YZSwineryModelAPI : YZBaseAPI
/** 猪群列表 */
+ (RACSignal*)requestSwineryList:(NSInteger)index batchNo:(NSString *)batchNo;
+ (RACSignal*)requestSwineryList:(NSInteger)index batchNo:(NSString *)batchNo type:(NSString*)type;
/**删除猪群档案 */
+ (RACSignal*)deleteSwineryWithID:(NSInteger)swineryId;
/** (猪群/猪只） 添加保健*/
+ (RACSignal*)addCare:(NSDictionary *)params;
@end
